package com.zhuhjay.eduservice.client;

import com.zhuhjay.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author ZhuHJay
 * @date 2022/9/7 16:38
 */
@FeignClient(value = "service-vod", fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    /**
     * 删除阿里云中的视频
     * @param videoId
     * @return
     */
    @DeleteMapping("/eduvod/video/removeAlyVideo/{videoId}")
    R removeAlyVideo(@PathVariable("videoId") String videoId);

    /**
     * 批量删除视频
     * @param videoList
     * @return
     */
    @DeleteMapping("/eduvod/video/removeAllAlyVideo")
    R removeAllAlyVideo(@RequestParam("videoList") List<String> videoList);
}
